from django.contrib import admin

from newsm.models import Category, News


@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
    #展示的列表字段
    list_display = ('id','name','createDate')

@admin.register(News)
class NewsAdmin(admin.ModelAdmin):
    list_display = ('id','category','title','img','content', 'createDate')